<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/22/022
  Time: 9:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
  <head>
    <title>主页</title>
  </head>
  <body>
  <h1><% Object username = request.getSession().getAttribute("username");
    if (username !=null){%>
    欢迎<%=username%>来到主页
    <%}else {%>
    请登录
    <%}%></h1>
  </body>
</html>
